package com.juhuixing.common.constant;

/**
 * 七牛云相关的常量
 *
 * @author nice
 * @date 2018/3/29 13:27
 */
public class QiNiuConstant {
    /**
     * 七牛云公钥
     */
    public static final String ACCESS_KEY = "2caeYdL9QSwjhpJc2v05LLgaOrk_Mc_HterAtD29";
    /**
     * 七牛云密钥
     */
    public static final String SECRET_KEY = "XQYY6AE3rhhp-ep9-xwOOUc2noRyAvXu8uLjkTMY";
    /**
     * 七牛云公开空间名
     */
    public static final String OPEN_BUCKET = "xiuxiu-app-public";
    /**
     * 七牛云私有空间名
     */
    public static final String PRIVATE_BUCKET = "xiuxiu-app";
    /**
     * 七牛云公开空间地址
     */
    public static final String QI_NIU_OPEN_ADDRESS = "http://pqnvgokz6.bkt.clouddn.com/";//"http://7xlmtr.com1.z0.glb.clouddn.com/";
    /**
     * 七牛云私有空间地址
     */
    public static final String QI_NIU_PRIVATE_ADDRESS = "http://pqnvdtfk2.bkt.clouddn.com/";//"https://xiuxiu.zhuiyinanian.com/";
    /**
     * by lk 个人云相册专用七牛云公开空间地址
     */
    public static final String PERSONAL_QI_NIU_PRIVATE_ADDRESS = "https://xiuxiu.public.zhuiyinanian.com/";
    /**
     * 图片缩略图参数
     */
    public static final String PICTURE_THUMBNAIL_PARA = "?imageView2/2/w/300";
    /**
     * 持久化操作前缀
     */
    public static final String PERSIST_PREFIX = "persist_";
    /**
     * 生成图片出错时返回的图片地址
     */
    public static final String ERROR_PIC_URL = QI_NIU_OPEN_ADDRESS + "QRCodeError.png";

    /**
     * 七牛云视频封面地址后缀
     */
    public final static String VIDEO_COVER_SUFFIX = "?vframe/jpg/offset/1/w/750";

    /**
     * 图片尺寸调整
     */
    public final static String PIC_THUMBNAIL = "?imageView2/2/w/400";

    /**
     * 图片尺寸调整
     */
    public final static String PIC_BEAUTIFUL_THUMBNAIL = "?imageView2/2/w/600";

    public final static String PIC_BIG_THUMBNAIL = "?imageView2/2/w/1000";

//    public final static String PIC_HEAD_URL = "?imageMogr2/gravity/Center/crop/!375x340a5-120/format/webp/blur/1x0/quality/75|imageslim";

    public final static String PIC_ORIGIN_URL = "?imageMogr2/format/webp/blur/1x0/quality/75|imageslim";

    public final static String PIC_FRIEND_HEAD_URL = "?imageMogr2/gravity/Center/crop/!400x560a5-120/format/webp/blur/1x0/quality/75|imageslim";

    public final static String MESSAGE_PIC_THUMB_URL = "?imageView2/2/w/300/format/webp";

}
